﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControl_gop_y_them_moi : System.Web.UI.UserControl
{
    protected string strClassName = "UserControl_gop_y_them_moi";
    const string MSG_CAPCHA_FALSE = "* Mã an toàn không chính xác";

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void btnFeedBack_Click(object sender, EventArgs e)
    {
        //clsGopY.stGOPY objGopY = new clsGopY.stGOPY();
        //objGopY.strGY_TIEUDE = txtTieuDe.Value;
        //objGopY.strGY_EMAIL = txtEmail.Value;
        //objGopY.strGY_NOIDUNG = txtNoiDung.Value;

        //if (this.Page.IsValid == true)
        //{
        //    string strCapCha = Request.Form["txtCapchaHash"];
        //    string strCapChaInput = OsPortal.oStringHelper.rpHash(OsPortal.oStringHelper.fncCnvNullToString(Request.Form["txtCapcha"]));
        //    if (strCapCha == strCapChaInput)
        //    {
        //        try
        //        {
        //            var strSuccessMessage = System.Configuration.ConfigurationManager.AppSettings["SUCCESS_MESSAGE"].ToString();
        //            var error = "";
        //            var currentID = "";
        //            var result = false;

        //            result = clsGopY.GOPY_ACT("A", objGopY, out error, out currentID);
        //            if (result && string.IsNullOrEmpty(error))
        //            {
        //                OsPortal.oHtmlHelper.AlertAndRederect(strSuccessMessage, "/", this.Page);
        //                return;
        //            }
        //            if (!string.IsNullOrEmpty(error))
        //            {
        //                OsPortal.oHtmlHelper.AlertAndRederect("Có lỗi: " + error, HttpContext.Current.Request.Url.AbsoluteUri, this.Page);
        //                OsPortal.oFileHelper.WriteLogErr(strClassName, "btnFeedBack_Click", error);
        //            }
        //        }
        //        catch (Exception ex)
        //        {
        //            OsPortal.oFileHelper.WriteLogErr(strClassName, "btnFeedBack_Click", ex.ToString());
        //        }
        //    }
        //    else {
        //        lblShowError.Visible=true;
        //        lblShowError.Text = MSG_CAPCHA_FALSE;
        //    }
        //}
    }
}